package com.hmall.api.client;

import com.hmall.api.config.DefaultFeignConfig;
import com.hmall.api.domin.vo.CartVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Collection;
import java.util.List;

@FeignClient(value = "cart-service",configuration = DefaultFeignConfig.class)
public interface ICartClient {

    @DeleteMapping("/carts")
    void deleteCartItemByIds(Collection<Long> itemIds) ;

    @ApiOperation("查询购物车列表")
    @GetMapping
     List<CartVO> queryMyCarts();
}